of these two registers is related to the communication mode (SD mode or SPI mode. the mmccard does not have the SCR and SD status registers. see table 1 below:
Table 1 seven registers in the SD card
1.1.ocr register
The OCR register stores the allowable power supply range of the
capacity problem. I understood it! Note that the function name here is the number of read sectors, and the actually returned value is the capacity of our card. Pay attention to it here.
1. First, check the code
U32 SD_GetSectorCount (void) {u8 csd [16]; u32 Capacity_KB, Capacity_MB; u8 n; b2csize; // obtain CSD information. If an error occurs during this period, returns 0 if (SD_GetCSD (csd )! = 0) return 0; n = (csd [5] 15) + (csd [10] 128)> 7) +
Today's Android phone models are complex and diverse, resulting in the development process using the official access to the SD card method in the part of the mobile phone does not apply, so need to develop their own packaging, the following is the code, hope to share out, we learn together/*** Get the Mobile phone SD card
Author: gooogleman@foxmail.com
Some time ago, songtitan Niu mentioned in the forum how to update NK using SD card. As follows:
Http://topic.csdn.net/u/20081009/17/4E0F5E66-C7A0-43D2-B33F-14E132280F70.html
You can update NK in CE and bootloader.1 under CEYou can directly use the file system API to read NK. Bin and put it into the memory buffer. You can use deviceioctl to call the interface of the NAND drive
========================================================== ==================================
Title: Support for SD card addition by wince
Abstract:
Note: Windows CE 5.0
Date: 2010.5.5
Name: Zhu minglei
========================================================== ==================================
The drivers and components to be added are as follows:
① Device Drivers | SDIO |
Method 1: dependency window
Method 2: start with the Registry
Method 1:
Because both USB storage devices and SD cards are storage devices,
When the device is connected, enumerate the sub-keys under the Registry path "HKEY_LOCAL_MACHINE // drivers // active". Find the items that match this value in self-check according to P-> dbcp_name, check whether the value of the key item "key" contains the "drivers // USB // clientdrivers // mass_storage_class
You cannot start the file system from the SD card-Linux general technology-Linux technology and application information. The following is a detailed description. I am using the vm7 virtual machine, the source code is linux-2.6.18, make a file system to start from the SD card. The ext3 item is added to the kernel, but t
The architecture of the SD card is described here. It defines the logical structure of the data area. For the differences between data partitions, the first partition has a master startup record and a partition table. The SD card file system uses the FAT file system (ISO/IEC 9293) and supports the fat12 and fat16 File
I often see posts about Software Encryption in the forum. Pure Software Encryption and read hardware serial number encryption are often discussed.
Both methods have their own advantages and disadvantages.
The method of encryption by reading the hardware serial number is limited by hardware.
Generally, the CPU and T-flash may have serial numbers. Today, I have studied how to read the SD card (t-flash) in Wi
Android-system information (memory, cpu, SD card, power, Version)The total memory size of memory (ram) android is stored in the system's/proc/meminfo file. You can read this file to obtain this information: copy the code public void getTotalMemory () {String str1 = "/proc/meminfo"; String str2 = ""; try {FileReader fr = new FileReader (str1); BufferedReader localBufferedReader = new BufferedReader (fr, 8192
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.